 /*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Graph;

import java.util.List;
import java.util.ArrayList;

/**
 *
 * @author oliviersputael
 */
public class Color {
	public Color(String n, int c) {
		name = n;
		constraintNb = c;
	}
	
	public String getName () {
		return name;
	}
	
	public int getConstraintNb () {
		return constraintNb;
	}
	
	@Override
	public boolean equals (Object o) {
		boolean result = false;
		if (o != null) {
			Color c = (Color)o;
			result = name.equals(c.getName());
			result = result && (constraintNb == c.getConstraintNb());
		}
		
		return result;
	}
	
	private String name;
	private int constraintNb;
}
